<?php

namespace model;
class EncryptionModel {

	/**
	 * @var string
	 */
	private $key = "SADFo92";
	
	 /**
	 * @param string $string
	 */

	public function enCrypt ($string) {

        
		return base64_encode(mcrypt_encrypt(MCRYPT_DES, $this->key, $string, MCRYPT_MODE_ECB));
	}

	 /**
	 * @param string $string
	 */


	public function deCrypt ($string) {
        
	 	return mcrypt_decrypt(MCRYPT_DES, $this->key,  base64_decode($string), MCRYPT_MODE_ECB);
	}

}



